from django.conf.urls.defaults import *

urlpatterns = patterns('movie.vote.views',
  (r'^$', 'index_redirect'),
  (r'^json/$', 'index'),
  (r'^update_tallies/$', 'update_tallies'),
  (r'^plusvote/json/(?P<movie_name>[^/]+)/$', 'plus_vote'),
  (r'^minusvote/json/(?P<movie_name>[^/]+)/$', 'minus_vote'),
  (r'^setrating/(?P<movie_name>[^/]+)/(?P<value>[^/]+)/$', 'setrating'),
  (r'^get_user_info/$', 'get_user_info'),
  (r'^get_voters/(?P<movie_name>[^/]+)/$', 'get_voters'),
  (r'^user_stats/$', 'user_stats'),
  (r'^user_stats/(?P<user>[^/]+)/$', 'user_stats'),
  (r'^logout/$', 'logout'),
)
